#ifndef __golImageAlgorithm_h
#define __golImageAlgorithm_h

#include "vtkSimpleImageToImageFilter.h"

#include "vtkSetGet.h"
#include "vtkObjectFactory.h"

#include "vtkImageData.h"
#include "vtkLookupTable.h"
#include "vtkImageMapToColors.h"

class golImageAlgorithm : public vtkSimpleImageToImageFilter
{
public:
	static golImageAlgorithm *New();	
	virtual void SimpleExecute(vtkImageData* input, vtkImageData* output);
	vtkSetMacro(bornLow,int);
	vtkSetMacro(liveLow,int);
protected:
	golImageAlgorithm();
	~golImageAlgorithm();
	vtkLookupTable *table;

private:
	int bornLow,bornHigh;
	int liveLow,liveHigh;
	int age;
};
#endif
